'''
Created on 2011-3-5

@author: microlin
'''

def factorial(n):
    if n == 1:
        return 1
    else:
        return n*factorial(n-1)

print (factorial(10))
for i in range(1,10):
    print (factorial(i))